package edu.friday.service;

import edu.friday.common.result.TableDataInfo;
import edu.friday.model.SysUser;
import edu.friday.model.vo.SysUserVO;
import org.springframework.data.domain.Example;
import org.springframework.data.domain.Pageable;

public interface ISysUserService {
    TableDataInfo selectUserList(SysUserVO sysUserVO, Pageable pageable);
    String checkUsernameUnique(String  username);

    String checkPhoneUnique(SysUserVO sysUserVO);

    String checkEmailUnique(SysUserVO sysUserVO);

    boolean insertUser(SysUserVO sysUserVO);

    int deleteUserByIds(Long[] userIds);

    boolean updateUser(SysUserVO sysUserVO);
    String checkUnique(SysUser user);

    SysUser findOne(Example<SysUser> example);

    SysUser selectUserById(Long userId);

    SysUser selectUserByUserName(String username);
}
